"""
数一数有几个a
"""
s = "itheima is a brand of itcast"
count = 0
for char in s:
    if char == 'a':
        count += 1
print("字符串中a的个数是:", count)